package com.uchedao.seller.util;

import android.content.Context;

/**
 * Created by hang on 2015/10/22.
 */
public class ShareHelper {

    public static void share(Context context) {
        // 测试微信分享
//                ShareSDK.initSDK(context);
//                Wechat.ShareParams wx = new Wechat.ShareParams();
//                wx.setShareType(Platform.SHARE_WEBPAGE);
//                wx.setTitle("优车到-卖家端");
//                wx.setText("好车尽在优车到");
//                wx.setImageData(BitmapFactory.decodeResource(context.getResources(), R.mipmap.ic_launcher));
//                wx.setUrl("http://www.273.cn/haoche/");
//                ShareSDK.getPlatform(Wechat.NAME).share(wx);
//
//                WechatMoments.ShareParams moments = new WechatMoments.ShareParams();
//                moments.setShareType(Platform.SHARE_WEBPAGE);
//                moments.setTitle("优车到-卖家端");
//                moments.setText("好车尽在优车到");
//                moments.setImageData(BitmapFactory.decodeResource(context.getResources(), R.mipmap.ic_launcher));
//                moments.setUrl("http://www.273.cn/haoche/");
//                ShareSDK.getPlatform(WechatMoments.NAME).share(moments);
    }
}
